<template>
  <view>
    <BackgroundBar title="关注" :back="true"></BackgroundBar>
    <UserList
      v-for="(item, index) of list"
      :key="index"
      :item="item"
    ></UserList>
  </view>
</template>

<script setup>
import { ref } from 'vue';
import BackgroundBar from '@/components/NavigationBar/background.vue';
import UserList from '@/components/UserList/item.vue';
import followManagement from '@/api/followManagement'

const list = ref(['', '', '']);
// 我的关注
followManagement.getFollowedUser()
  .then(res => {
    list.value = res.data
    console.log("follow页面", res, list.value)
  })
  .catch(err => {
    console.log(err)
  })
</script>

<style lang="scss"></style>
